#include <boost/format.hpp>
#include <boost/random.hpp>

#include "Random.h"
#include "trace_worker.h"

CRandom::CRandom()
{
}

std::string CRandom::TimeRandStr()
{   trace_worker();
    static boost::mt19937 rng(static_cast< unsigned >(std::time(0)));
    boost::uniform_int<> uni_dist(0, 10000); 
    time_t curTime = time(NULL);

    return (boost::format("%ld%d") % curTime % uni_dist(rng)).str();
}


